<?php
/**
 * 路由配置
 * 
 */
return array(
    'URL_ROUTER_ON' => TRUE,
    
    'URL_ROUTE_RULES'       =>  array(
        
        '/^index$/i' => 'Home/Index/index',
        '/^index\-([1-9]([0-9]+)?)$/i' => 'Home/Index/index?p=:1',
        //图片处理程序
        
        //详情页面
        '/^detail\/([a-z0-9_]+)$/i' => 'Home/Article/detail?name=:1|strtolower',
        '/^detail\/([a-z0-9_]+)\/id\/([a-z0-9]+)$/i' => 'Home/Article/detail?name=:1|strtolower&id=:2',
        'test'=>'Home/Index/test', 
        '/^detail\/tags\/([a-z0-9_]+)\/([a-z0-9_]+)\/id\/([a-z0-9]+)$/i' => 'Home/Article/detail?name=:2|strtolower&nav=:1&flag=1&id=:3',
        '/^detail\/tag\/([a-z0-9_]+)\/([a-z0-9_]+)\/([a-z0-9]+)$/i' => 'Home/Article/detail?name=:2|strtolower&nav=:1&flag=1&id=:3',
        '/^detail\/tags\/([a-z0-9_]+)\/([a-z0-9_]+)$/i' => 'Home/Article/detail?name=:2|strtolower&nav=:1&flag=1',
        '/^detail\/([a-z0-9_]+)\/([a-z0-9_]+)$/i' => 'Home/Article/detail?name=:2|strtolower&nav=:1',
        '/^detail\/([a-z0-9_]+)\/([a-z0-9_]+)\/id\/([a-z0-9]+)$/i' => 'Home/Article/detail?name=:2|strtolower&nav=:1&flag=1&id=:3',
        '/^detail\/([a-z0-9_]+)\/([a-z0-9_]+)$/i' => 'Home/Article/detail?name=:2|strtolower&nav=:1',
        '/^detail\/([a-z0-9_]+)\/([a-z0-9_]+)\/id\/([a-z0-9]+)$/i' => 'Home/Article/detail?name=:2|strtolower&nav=:1&id=:3',
        
        //http://www.wen0.cn/detail/chuandasiqichenchenn&nav=chenshan&flag=1.html
        
        
        
        //列表页面
        '/^tags\/getTags$/i'=>'Home/tags/getTags',
        '/^lists$/i'=>'Home/Article/lists', 
        '/^lists\-([1-9]([0-9]+)?)$/i'=>'Home/Article/lists?p=:1', 
        '/^tags$/i'=>'Home/Tags/index',
        '/^new$/i'=>'Home/NewInfo/index',
        '/^tags\-([1-9]([0-9]+)?)$/i'=>'Home/Tags/index?p=:1',
        '/^cate$/i'=>'Home/Category/index',
        '/^cate\-([1-9]([0-9]+)?)$/i'=>'Home/Category/index?p=:1',
        //这个要放在最下面，不然后面的没法使用
        '/^([a-z0-9]{2,})$/i'=>'Home/Article/index?name=:1|strtolower',
        '/^tags\/([a-z0-9_]{2,})$/i'=>'Home/Article/index?name=:1|strtolower&flag=1',
        '/^tags\/([a-z0-9_]{2,})\/id\/([a-z0-9]+)$/i'=>'Home/Article/index?name=:1|strtolower&id=:2&flag=1',
        '/^cate\/([a-z0-9_]{2,})$/i'=>'Home/Article/index?name=:1|strtolower',
        '/^cate\/([a-z0-9_]{2,})\-([1-9]([0-9]+)?)$/i'=>'Home/Article/index?name=:1|strtolower&p=:2',
        '/^cate\/([a-z0-9_]{2,})\/id\/([a-z0-9]+)$/i'=>'Home/Article/index?name=:1|strtolower&id=:2',
        '/^([a-z0-9]{2,})\-([1-9]([0-9]+)?)$/i'=>'Home/Article/index?name=:1|strtolower&p=:2',
        '/^tags\/([a-z0-9_]{2,})\-([1-9]([0-9]+)?)$/i'=>'Home/Article/index?name=:1|strtolower&flag=1&p=:2',
        '/^pic.php\/img=(\S+)$/i'=>'Home/Pic/dealImg?img=:1',
        
        
    ),
    'URL_MAP_RULES' => array(
        
    ),
);

